using System;
using digit.Core;
using System.Data;

namespace SMS.ServiceManager
{
    public class ServiceOthersInfo
    {
        #region CONSTRUCTORS
        public ServiceOthersInfo()
        {

            this.m_serviceOtherID = Util.NULL_INT;
            this.m_cmd = Util.NULL_STRING;
            this.m_code = Util.NULL_STRING;
            this.m_param = Util.NULL_STRING;
            this.m_content1 = Util.NULL_STRING;
            this.m_content2 = Util.NULL_STRING;
            this.m_content3 = Util.NULL_STRING;
            this.m_content4 = Util.NULL_STRING;
            this.m_content5 = Util.NULL_STRING;
            this.m_serviceID = Util.NULL_STRING;
            this.m_contentType = Util.NULL_BYTE;
            this.m_msgType = Util.NULL_BYTE;
            this.m_totalMsg = Util.NULL_BYTE;
            this.m_createdBy = Util.NULL_STRING;
            this.m_createdDate = Util.NULL_DATETIME;
            this.m_status = Util.NULL_BYTE;
        }
        public ServiceOthersInfo(int serviceOtherID, string cmd, string code, string param, string content1, string content2, string content3, string content4, string content5, string serviceID, byte contentType, byte msgType, byte totalMsg, string createdBy, DateTime createdDate, byte status)
        {

            this.m_serviceOtherID = serviceOtherID;
            this.m_cmd = cmd;
            this.m_code = code;
            this.m_param = param;
            this.m_content1 = content1;
            this.m_content2 = content2;
            this.m_content3 = content3;
            this.m_content4 = content4;
            this.m_content5 = content5;
            this.m_serviceID = serviceID;
            this.m_contentType = contentType;
            this.m_msgType = msgType;
            this.m_totalMsg = totalMsg;
            this.m_createdBy = createdBy;
            this.m_createdDate = createdDate;
            this.m_status = status;
        }
        public ServiceOthersInfo(DataRow dRow)
        {

            this.m_serviceOtherID = (int)Util.ReplaceDBNullTo(dRow["serviceOtherID"], Util.NULL_INT);
            this.m_cmd = Util.ReplaceDBNullTo(dRow["cmd"], Util.NULL_STRING).ToString();
            this.m_code = Util.ReplaceDBNullTo(dRow["code"], Util.NULL_STRING).ToString();
            this.m_param = Util.ReplaceDBNullTo(dRow["param"], Util.NULL_STRING).ToString();
            this.m_content1 = Util.ReplaceDBNullTo(dRow["content1"], Util.NULL_STRING).ToString();
            this.m_content2 = Util.ReplaceDBNullTo(dRow["content2"], Util.NULL_STRING).ToString();
            this.m_content3 = Util.ReplaceDBNullTo(dRow["content3"], Util.NULL_STRING).ToString();
            this.m_content4 = Util.ReplaceDBNullTo(dRow["content4"], Util.NULL_STRING).ToString();
            this.m_content5 = Util.ReplaceDBNullTo(dRow["content5"], Util.NULL_STRING).ToString();
            this.m_serviceID = Util.ReplaceDBNullTo(dRow["serviceID"], Util.NULL_STRING).ToString();
            this.m_contentType = (byte)Util.ReplaceDBNullTo(dRow["contentType"], Util.NULL_BYTE);
            this.m_msgType = (byte)Util.ReplaceDBNullTo(dRow["msgType"], Util.NULL_BYTE);
            this.m_totalMsg = (byte)Util.ReplaceDBNullTo(dRow["totalMsg"], Util.NULL_BYTE);
            this.m_createdBy = Util.ReplaceDBNullTo(dRow["createdBy"], Util.NULL_STRING).ToString();
            this.m_createdDate = (DateTime)Util.ReplaceDBNullTo(dRow["createdDate"], Util.NULL_DATETIME);
            this.m_status = (byte)Util.ReplaceDBNullTo(dRow["status"], Util.NULL_BYTE);
        }
        #endregion

        #region ATTRIBUTES
        private int m_serviceOtherID;
        private string m_cmd;
        private string m_code;
        private string m_param;
        private string m_content1;
        private string m_content2;
        private string m_content3;
        private string m_content4;
        private string m_content5;
        private string m_serviceID;
        private byte m_contentType;
        private byte m_msgType;
        private byte m_totalMsg;
        private string m_createdBy;
        private DateTime m_createdDate;
        private byte m_status;
        #endregion

        #region PROPERTIES
        public int ServiceOtherID
        {
            get
            {
                return this.m_serviceOtherID;
            }
            set
            {
                this.m_serviceOtherID = value;
            }
        }

        public string Cmd
        {
            get
            {
                return this.m_cmd;
            }
            set
            {
                this.m_cmd = value;
            }
        }

        public string Code
        {
            get
            {
                return this.m_code;
            }
            set
            {
                this.m_code = value;
            }
        }

        public string Param
        {
            get
            {
                return this.m_param;
            }
            set
            {
                this.m_param = value;
            }
        }

        public string Content1
        {
            get
            {
                return this.m_content1;
            }
            set
            {
                this.m_content1 = value;
            }
        }

        public string Content2
        {
            get
            {
                return this.m_content2;
            }
            set
            {
                this.m_content2 = value;
            }
        }

        public string Content3
        {
            get
            {
                return this.m_content3;
            }
            set
            {
                this.m_content3 = value;
            }
        }

        public string Content4
        {
            get
            {
                return this.m_content4;
            }
            set
            {
                this.m_content4 = value;
            }
        }

        public string Content5
        {
            get
            {
                return this.m_content5;
            }
            set
            {
                this.m_content5 = value;
            }
        }

        public string ServiceID
        {
            get
            {
                return this.m_serviceID;
            }
            set
            {
                this.m_serviceID = value;
            }
        }

        public byte ContentType
        {
            get
            {
                return this.m_contentType;
            }
            set
            {
                this.m_contentType = value;
            }
        }

        public byte MsgType
        {
            get
            {
                return this.m_msgType;
            }
            set
            {
                this.m_msgType = value;
            }
        }

        public byte TotalMsg
        {
            get
            {
                return this.m_totalMsg;
            }
            set
            {
                this.m_totalMsg = value;
            }
        }

        public string CreatedBy
        {
            get
            {
                return this.m_createdBy;
            }
            set
            {
                this.m_createdBy = value;
            }
        }

        public DateTime CreatedDate
        {
            get
            {
                return this.m_createdDate;
            }
            set
            {
                this.m_createdDate = value;
            }
        }

        public byte Status
        {
            get
            {
                return this.m_status;
            }
            set
            {
                this.m_status = value;
            }
        }

        #endregion

    }
}